package com.taxinfo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.taxinfo.pojo.dto.LoginDto;
import com.taxinfo.pojo.vo.LoginInfo;

import java.util.HashMap;

/**
 * @author : wanghy
 * @time : 2020-09-01 12:56
 */
public interface LoginService extends IService<LoginInfo>  {
    /**
     * 验证登录信息
     *
     * @param username 用户名
     * @param password 密码
     * @return 成功返回bean，失败返回null
     */
    LoginDto verify(String username, String password);

    public LoginDto getUserInfo(String username);

    public boolean sendMailMsg(String es_receiver, String es_title, String es_content);

    int updateUser(String verifyCode,String username);

    boolean verifyCode(String code,String username);

    void updatePassword(String password, String trim);

    void updateBaseDate(String strDate,String username);

    String getCertfyInfo(HashMap<String, Object> request) throws Exception;

    void updateSetting(String ip, String token,String username);
}
